package com.zhaojw.zr.web.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


@Entity
@Table(name="tb_user")
public class User implements Serializable{

	private static final long serialVersionUID = 1L;
    
	@Id
	@GenericGenerator(name="user_id",strategy="uuid")  //主键生成策略，按uuid方式生成
	private String userId;  //主键
	
	@Column(name="user_name",length=32,nullable=false,unique=false)
	private String userName; //用户名称
	
	@Column(name="user_pwd",length=32)
	private String userPwd; 
	
	@Column(name="user_email",length=32,unique=true,nullable=false)
	private String userEmail;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPwd() {
		return userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public String getUserEmail() {
		return userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}
}
